package com.wcar.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName tb_status_code
 */
@TableName(value ="tb_status_code")
@Data
public class StatusCode implements Serializable {
    /**
     * 行为状态id
     */
    @TableId(type = IdType.AUTO)
    private Integer statusId;

    /**
     * 行为状态码
     */
    private String payStatusCode;

    /**
     * 状态
     */
    private String payStatusName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StatusCode other = (StatusCode) that;
        return (this.getStatusId() == null ? other.getStatusId() == null : this.getStatusId().equals(other.getStatusId()))
            && (this.getPayStatusCode() == null ? other.getPayStatusCode() == null : this.getPayStatusCode().equals(other.getPayStatusCode()))
            && (this.getPayStatusName() == null ? other.getPayStatusName() == null : this.getPayStatusName().equals(other.getPayStatusName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStatusId() == null) ? 0 : getStatusId().hashCode());
        result = prime * result + ((getPayStatusCode() == null) ? 0 : getPayStatusCode().hashCode());
        result = prime * result + ((getPayStatusName() == null) ? 0 : getPayStatusName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", statusId=").append(statusId);
        sb.append(", payStatusCode=").append(payStatusCode);
        sb.append(", payStatusName=").append(payStatusName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}